package com.character.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * (Log)表实体类
 *
 * @author makejava
 * @since 2021-12-08 09:50:44
 */
@TableName("tbl_log")
@Data
public class Log extends Model<Log> {
    //自增主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //用户名
    private String loginName;
    //真实姓名
    private String userName;
    //IP地址
    private String ip;
    //访问类名
    private String className;
    //访问方法名
    private String methodName;
    //参数
    private String params;
    //操作时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operationTime;

    }

